<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSysFeedbackTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('sys_feedback', function(Blueprint $table)
        {
            $table->increments('id');
            $table->integer('user_id')->default(0)->comment('用户id');
            $table->string('title',64)->nullable()->comment('标题');
            $table->text('content')->nullable()->comment('内容');
            $table->string('contact_way')->nullable()->comment('联系方式');
            $table->integer('is_read')->default(0)->comment('是否已查看');
            $table->integer('read_admin_id')->default(0)->comment('读取管理员');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
